<?php
/**
 * Created by PhpStorm.
 * User: lyang
 * Date: 2016/12/31
 * Time: 12:30
 */
session_start();
define("ROOT",__DIR__."/");
 require_once ( ROOT."/conf/conf.php");
$middle = YC::make("Middleware");
$middle->auth($_SESSION);
$router = YC::make("Router");
$router->admin();